package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_SBLX"
 *     
*/
public class DmSblx implements Serializable {

    /** identifier field */
    private String sblxDm;

    /** nullable persistent field */
    private String sblxMc;

    /** full constructor */
    public DmSblx(String sblxDm, String sblxMc) {
        this.sblxDm = sblxDm;
        this.sblxMc = sblxMc;
    }

    /** default constructor */
    public DmSblx() {
    }

    /** minimal constructor */
    public DmSblx(String sblxDm) {
        this.sblxDm = sblxDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SBLX_DM"
     *         
     */
    public String getSblxDm() {
        return this.sblxDm;
    }

    public void setSblxDm(String sblxDm) {
        this.sblxDm = sblxDm;
    }

    /** 
     *            @hibernate.property
     *             column="SBLX_MC"
     *             length="30"
     *         
     */
    public String getSblxMc() {
        return this.sblxMc;
    }

    public void setSblxMc(String sblxMc) {
        this.sblxMc = sblxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sblxDm", getSblxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmSblx) ) return false;
        DmSblx castOther = (DmSblx) other;
        return new EqualsBuilder()
            .append(this.getSblxDm(), castOther.getSblxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSblxDm())
            .toHashCode();
    }

}
